use std::collections::HashSet;

pub fn new_count_distinct(input_str: &str) -> usize {
    let elements = input_str.split(',');

    let mut unique_elements = HashSet::new();

    for element in elements {
        unique_elements.insert(element);
    }

    unique_elements.len()
}
